package com.example.recycler.fffate;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/3/4.
 */

public class Fate_dm extends TextView{
    private int math;
    public Fate_dm(Context context, AttributeSet attrs) {
        super(context, attrs);
        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.Fate_dm);
        int integer = typedArray.getInteger(R.styleable.Fate_dm_math, -1);
        //打印当前方法内参数
        System.out.println("context = [" + context + "], attrs = [" + attrs + "]");
        //打印当前方法
        System.out.println("Fate_dm.Fate_dm");
        //打印当前类内部参数
        System.out.println("integer = " + integer);
    }
}
